import React, { Component } from 'react'
import { Form, Input, message,Button } from 'antd';
import {Redirect} from 'react-router-dom'
import "./style.less";


class login extends Component {
 
  render() {
    const onFinish = (values) => {
      message.success('This is a success message');
    };
    return (
        <div className="login-container">
        <div className="wrapper">
          <div className="title">监控后台</div>
          <Form
            name="basic"
            onFinish={onFinish}
          >
            <Form.Item
              label="用户名"
              name="username"
              rules={[{ required: true, message: '请输入用户名' }]}
            >
              <Input />
            </Form.Item>

            <Form.Item
              label="密码"
              name="password"
              rules={[{ required: true, message: '请输入密码' }]}
            >
              <Input.Password />
            </Form.Item>

          

            <Form.Item >
              <Button type="primary" htmlType="submit">
                登录
              </Button>
            </Form.Item>
          </Form>
        </div>
      </div>
    )
  }
}

export default login
